//
//  MineMidHeadCVCell.m
//  Shine
//
//  Created by dllo on 16/3/11.
//  Copyright © 2016年 王斌. All rights reserved.
//

#import "MineMidHeadCVCell.h"
#define WIDTHCVCELL self.contentView.frame.size.width
#define HEIGHTCVCELL self.contentView.frame.size.height
@implementation MineMidHeadCVCell
- (id)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self createCell];
    }
    return self;
}

- (void)createCell{
    self.leftTopLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.leftTopLabel];
    self.leftMidLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.leftMidLabel];
    self.leftBottomLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.leftBottomLabel];
    self.rightTopLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.rightTopLabel];
    self.rightMidLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.rightMidLabel];
    self.rightBottomLabel = [[UILabel alloc] init];
    [self.contentView addSubview:self.rightBottomLabel];
    self.midLineView = [[UIView alloc] init];
    [self.contentView addSubview:self.midLineView];
}

- (void)layoutSubviews{
    [super layoutSubviews];
    self.leftTopLabel.frame = CGRectMake(10, 10, WIDTHCVCELL/2, 30);
    self.leftTopLabel.textAlignment = YES;
    self.leftMidLabel.frame = CGRectMake(10, 40, WIDTHCVCELL/2, 80);
    self.leftMidLabel.textAlignment = YES;
    self.leftBottomLabel.frame = CGRectMake(10, 120, WIDTHCVCELL/2, 30);
    self.leftBottomLabel.textAlignment = YES;
    self.rightTopLabel.frame = CGRectMake(WIDTHCVCELL/2, 10, WIDTHCVCELL/2, 30);
    self.rightTopLabel.textAlignment = YES;
    self.rightMidLabel.frame = CGRectMake(WIDTHCVCELL/2, 40, WIDTHCVCELL/2, 80);
    self.rightMidLabel.textAlignment = YES;
    self.rightBottomLabel.frame = CGRectMake(WIDTHCVCELL/2, 120, WIDTHCVCELL/2, 30);
    self.rightBottomLabel.textAlignment = YES;
    self.midLineView.frame = CGRectMake(WIDTHCVCELL/2, 40, 1, 100);
}


@end
